package com.two.service.pinglun.controller.api;

import com.two.common.util.CommonResult;
import com.two.service.pinglun.service.PinglunService;
import com.two.service.pinglun.vo.PinglunVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/order/order")
public class ApiOrderController {
    @Autowired
    private PinglunService pinglunService;

    //添加评论到评论表
    @PostMapping("/pinglun")
    public CommonResult pinglun( @RequestBody PinglunVo pinglunVo){

       return pinglunService.insert(pinglunVo);
    }
}
